package cn.tedu.controller;/**
 * @Author 金帮嘉诚 @Date 2021-07-20 星期二 14:55
 */
/*本类用于测试*/

import cn.tedu.pojo.Car;
import cn.tedu.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**知识点*/
@CrossOrigin
@RestController
@RequestMapping("/car/")
public class CarController {
    @Autowired
    private CarService carService;

    @RequestMapping("get")
    public List<Car> get(){
        return carService.get();
    }

}
